/*
 * Copyright © 2021 http://www.hn-szzy.com/ All rights reserved.
 */
package com.xjh.basestudy.javabase.streamandlambda;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Date;
/**
 * @author： 徐建华
 * @date： 2022/5/10
 * @description：
 */
@Data
public class StudentBO {
    private Long id;
    /**
     * 性别：0：男、1：女
     */
    private Integer sex;
    private String name;
    private Integer age;
    private String character;

    private Date createTime;

    public static List<StudentBO> getStudentBOList() {
        ArrayList<StudentBO> studentBOList = new ArrayList<>();

        StudentBO studentBO1 = new StudentBO();
        studentBO1.setId(1L);
        studentBO1.setName("徐建华");
        studentBO1.setSex(1);
        studentBO1.setAge(24);
        studentBO1.setCharacter("稳重;勤勉");

        StudentBO studentBO2 = new StudentBO();
        studentBO2.setId(2L);
        studentBO2.setSex(0);
        studentBO2.setName("陈晓琳");
        studentBO2.setCharacter("可爱;沙雕");
        studentBO2.setAge(18);

        StudentBO studentBO3 = new StudentBO();
        studentBO3.setSex(0);
        studentBO3.setId(3L);
        studentBO3.setName("曾雪");
        studentBO3.setCharacter("清高;好看");
        studentBO3.setAge(23);
        studentBOList.add(studentBO1);
        studentBOList.add(studentBO2);
        studentBOList.add(studentBO3);

        StudentBO studentBO4 = new StudentBO();
        studentBO4.setSex(0);
        studentBO4.setId(4L);
        studentBO4.setName("曾雪");//重复
        studentBO4.setCharacter("清高;好看");
        studentBO4.setAge(23);//重复
        studentBOList.add(studentBO4);
        return studentBOList;
    }
}
